package cn.i5.remoteinvocationcontrol.annotation;

import cn.i5.remoteinvocationcontrol.constant.ControlWay;
import cn.i5.remoteinvocationcontrol.constant.ServicesName;

import java.lang.annotation.*;

/**
 * 远程服务调用控制
 *
 * @author mc0710
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RemoteInvocationControl {

    /**
     * 控制方式
     */
    ControlWay[] controlWay() default {};

    /**
     * 服务名，默认是不限制
     */
    ServicesName[] servicesName() default {};

}
